package com.example.test19.mapper;

import com.example.test19.model.MessageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageMapper {
    @Select("select * from message_info")
    List<MessageInfo> select1();

    @Insert("insert into message_info(`from`, `to`,message) values(#{from},#{to},#{message})")
    Integer insert1(MessageInfo messageInfo);
}
